<?php

/**
 * Generated Model class.
 */
class Base_NewsShortRow extends Db_Row
{

    /**
     * Set new value for news_short.id column in current Row.
     * 
     * @param int $IdFromNewsShortRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return news_short.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for news_short.profile_id column in current Row.
     * 
     * @param int $ProfileIdFromNewsShortRow
     * @return void
     */
    public function setProfileId($ProfileId)
    {
        $this->__set("profile_id", $ProfileId);
    }

    /**
     * Return news_short.profile_id column value in current Row.
     * 
     * @return int
     */
    public function getProfileId()
    {
        return $this->__get("profile_id");
    }

    /**
     * Return parent row from table profile where news_short.profile_id = profile.id
     * 
     * @param Db_Select $selectFromProfile
     * @return ProfileRow
     */
    public function getProfileRowByProfileId($select = null)
    {
        return $this->findParentRow('ProfilePeer', null, $select);
    }

    /**
     * Set new value for news_short.text column in current Row.
     * 
     * @param varchar $TextFromNewsShortRow
     * @return void
     */
    public function setText($Text)
    {
        $this->__set("text", $Text);
    }

    /**
     * Return news_short.text column value in current Row.
     * 
     * @return varchar
     */
    public function getText()
    {
        return $this->__get("text");
    }

    /**
     * Set new value for news_short.date column in current Row.
     * 
     * @param datetime $DateFromNewsShortRow
     * @return void
     */
    public function setDate($Date)
    {
        $this->__set("date", $Date);
    }

    /**
     * Return news_short.date column value in current Row.
     * 
     * @return datetime
     */
    public function getDate()
    {
        return $this->__get("date");
    }


}

